<%@ page import="com.oriental.manage.core.enums.CompanyType" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form" %>
<%--
  User: Yangxp
  Date: 2016/5/19
  Time: 9:31
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../common/taglibs.jsp" %>
<html>
<head>
    <title>Title</title>
    <script src="${ctx}/js/views/specially/searchSpeciallyMchntBaseInfoDelete.js"></script>
</head>
<body ng-app="myApp" style="overflow:scroll;overflow-x:hidden">

<core:import url="../common/pageHead.jsp">
    <core:param name="title" value="商户信息删除"/>
</core:import>

<div ng-controller="queryCtrl" class="container-fluid">
    <form id="queryForm" name="queryForm" action="${ctx}/specialMerchant/baseInfoDelete/search"   autocomplete="off">
        <table class="table table-bordered">
            <tr align="center">
                <td class="text-center">
                    商户代码：
                </td>
                <td>
                    <input type="text" ng-model="vm.queryBean.cusCode" placeholder="根据简称获取商代码" class="{{vm.constant.inputClass}}"
                           typeahead-min-length="0"   uib-typeahead="item.key as item.value for item in vm.getCache('MERCHANT_CODE') | filter:$viewValue | limitTo:10"/>
                </td>

                <%--<td class="text-right">--%>
                    <%--商户全称：--%>
                <%--</td>--%>
                <%--<td>--%>
                    <%--<input type="text" ng-model="vm.queryBean.regName" placeholder="支持模糊查询" class="{{vm.constant.inputClass}}"--%>
                           <%--typeahead-min-length="0"   uib-typeahead=" item.value as item.value  for item in vm.getCache('MERCHANT_CODE') | filter:$viewValue | limitTo:10"/>--%>
                <%--</td>--%>

            <tr align="center">
                <td colspan="8">
                    <button type="button" ng-click="vm.queryDetail()" class="btn btn-default">查询</button>
                    <button type="button" ng-click="vm.resetForm()" class="btn btn-default">重置</button>
                </td>
            </tr>
        </table>
    </form>

    <div>
        <p class="btn-group">
            <%--<shiro:hasPermission name="merchant-contacts_update">--%>
            <button ng-click="vm.uploadItem()"><i class="glyphicon glyphicon-plus">新增删除</i></button>
        </p>
        <table table-detail>
            <thead>
            <tr>

                <th>商户代码</th>
                <th>商户类型</th>
                <th>删除上报状态</th>
                <th>操作时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody ng-repeat="bean in vm.pagination.list ">
            <tr>

                <td>{{bean.cusCode}}</td>
                <td>{{{'01':'自然人','02':'企业商户','03':'个体工商户'}[bean.cusType]}}</td>
                <%--<td>{{bean.status}}</td>--%>
                <td>{{vm.cached.SPECIALLY_AUDIT_STATUS[bean.uploadStatus]}}{{{'99':'未上报删除'}[bean.uploadStatus]}}</td>
                <td>{{bean.deleteTime| date:'yyyy-MM-dd'}}</td>
                <td>
                    <button ng-click="vm.uploadDetailDelete(bean)">详情</button>
                </td>
            </tr>
            </tbody>

        </table>
    </div>

    <core:import url="../common/pageFoot.jsp"/>
</div>
<core:import url="../common/nav.jsp"/>
</body>
</html>
